﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bimaru
{
    class Game
    {
        private Grid Board { get; set; }
        public GameState GameStatus { get; set; }
        public DateTime StartTime { get; set; }
        public TimeSpan[] Interruptions { get; set; }

        public Game(int gridSize)
        {
            Board = new Grid(gridSize);
            GameStatus = GameState.Paused;
        }

        public CellOccupant Rotate(int x, int y)
        {
            return Board.RotateCell(x, y);
        }

        public void PlaceBoats(int toPlace)
        {
            Ship[] Ships = new Ship[toPlace];
            for (int i = 0; i < Ships.Length; i++)
            {
                Ships[i] = new Ship(i);
            }
            Board.PlaceBoats(Ships);
        }

    }
}
